            <link href="__PUBLIC__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="__PUBLIC__/css/page.css" rel="stylesheet">
    <link href="__PUBLIC__/css/new.css" rel="stylesheet">


            <!-- 一级类目 -->
            <form  action="{:U('add_cate')}" method="post" style="margin:20px ">
							
                <div class="form-group">
                    <label class="col-sm-3 control-label">添加一级类目：</label>
                    <div class="col-sm-2">
                        <!-- 隐藏区域 -->
                        <input type="hidden" name="pid" value="0">
                        <input  name="catename" type="text"  placeholder="中文类目名称" class="form-control" style="width: 200px;margin-bottom: 10px;align-items: center;">  
                        <input  name="encatename" type="text"  placeholder="英文类目名称" class="form-control" style="width: 200px;margin-bottom: 10px;align-items: center;">   

                        <input  name="sort" type="text" size="4" style="width: 60px;margin-bottom: 10px;text-align: center;" class="form-control" >                                
                    </div>
                    
                    <div class="col-sm-2" style="padding-top: 10px;">
                        <input  name="add_top" type="submit" value="提交" class="btn btn-primary">                                    
                    </div>
                </div>
            </form>


            <!-- 二级类目 -->
            <form action="" method="post" style="margin:20px;margin-top: 40px; ">

                <div class="form-group">
                    <label class="col-sm-3 control-label">添加二级类目：</label>
                    <div class="col-sm-2">
                        <select name="pid" class="form-control" style="margin-top:5px;margin-bottom: 5px;">
                            <option value="">请选择</option>
                            <!-- 循环 -->
                            <foreach name='res' item='cat'>
                                <option value="{$cat.id}"><?php echo str_repeat('---',$cat['level']);?>{$cat.catename}</option>

                            </foreach>
                        </select>                                
                    </div>

                    <div class="col-sm-2">
                        <input type="text" placeholder="中文类目名称" name="catename" class="form-control" style="width: 200px;align-items: center;margin-bottom: 10px;"> 

                        <input type="text" placeholder="英文类目名称" name="encatename" class="form-control" style="width: 200px;align-items: center;margin-bottom: 10px;"> 

                         <input  name="sort" type="text" size="4" style="width: 60px;margin-bottom: 10px;text-align: center;" class="form-control" > 

                    </div>

                    
                    <div class="col-sm-2">
                        <input  name="add_sub" type="submit" value="提交" class="btn btn-primary">                                    
                    </div>
                </div>
            </form>

                 
